package com.xbongbong.saas.model;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.pro.domain.entity.UpdateDataEntity;
import com.xbongbong.pro.formdata.pojo.dto.SaasAnalysisDataDTO;
import com.xbongbong.saas.domain.entity.ext.CreditTemporaryLimitEntityExt;

import java.util.List;
import java.util.Map;


/**
 * @author xingxing.xiao
 */
public interface CreditTemporaryLimitModel extends IModel<CreditTemporaryLimitEntityExt> {

   void insertBatch(List<CreditTemporaryLimitEntityExt> list, boolean isImport) throws XbbException;

   List<CreditTemporaryLimitEntityExt> findEntitys(Map<String, Object> param);

   CreditTemporaryLimitEntityExt getByKey(Long key, String corpid);


   Integer updateBatch(List<UpdateDataEntity> valueList, String corpid) throws XbbException;

   Integer deleteByKey4Process(Long key, String corpid) throws XbbException;

   void formatData(SaasAnalysisDataDTO saasAnalysisDataDTO, JSONObject result) throws XbbException;
}
